package com.escool.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.escool.dao.PerfilPagoDAO;
import com.escool.model.TbPerfilPago;

@Service
public class PerfilPagoServiceImpl implements PerfilPagoService {
	
	@Autowired
	PerfilPagoDAO perfilPagoDAO;

	@Transactional
	public void addPerfPago(TbPerfilPago perfil) {
		// TODO Auto-generated method stub
		perfilPagoDAO.addPerfPago(perfil);
	}

	@Transactional
	public void updatePerfPago(TbPerfilPago perfil) {
		// TODO Auto-generated method stub
		perfilPagoDAO.updatePerfPago(perfil);
	}

	@Transactional
	public void deletePerfPago(Integer id) {
		// TODO Auto-generated method stub
		perfilPagoDAO.deletePerfPago(id);
	}

	@Transactional
	public TbPerfilPago findPerfPago(Integer id) {
		// TODO Auto-generated method stub
		return perfilPagoDAO.findPerfPago(id);
	}

	@Transactional
	public List<TbPerfilPago> listPerfPago() {
		// TODO Auto-generated method stub
		return perfilPagoDAO.listPerfPago();
	}

}
